<?php
##*HEADER*##

jimport('joomla.application.component.view');

class _ECR_COM_NAME__ECR_LIST_POSTFIX_View_ECR_ELEMENT_NAME_ extends JView
{
    function display($tpl = null)
    {
        JHTML::stylesheet( '_ECR_COM_NAME_.css', 'administrator/components/com__ECR_COM_NAME_/assets/' );

        //-- Data from model
        $item =& $this->get('Data');
        $isNew = ($item->id < 1);
        $text = $isNew ? JText::_('New') : JText::_('Edit');

        JToolBarHelper::title('&nbsp;&nbsp;'.JText::_('_ECR_ELEMENT_NAME_' ).': <small><small>[ '.$text.' ]</small></small>', '_ECR_ELEMENT_NAME_');

        JToolBarHelper::save();
        JToolBarHelper::cancel();

        #_ECR_SMAT_DESCRIPTION_VIEW0_

        #_ECR_SMAT_PUBLISHED_VIEW0_

        $this->assignRef('item', $item);
        parent::display($tpl);
    }//function

}//class
